package com.woate.wingframework.persistent.api;

import java.util.List;

public interface LockMapper<T,K> {

    String LOCK_BY_FOR_UPDATE_BY_PRIMARY_KEY = "lockByForUpdateByPrimaryKey";
    String LOCK_BY_FOR_UPDATE = "lockByForUpdate";
    String LOCK_BY_UPDATE_PRIMARY_KEY = "lockByUpdatePrimaryKey";
    List<T> lockByForUpdate(T entity);
    T lockByForUpdateByPrimaryKey(K pk);
    int lockByUpdatePrimaryKey(K pk);
}
